package liu.de.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author liude
 */
@Service
@Slf4j
public class OuterService {
    private final
    RetryService retryService;

    @Autowired
    public OuterService(RetryService retryService) {
        this.retryService = retryService;
    }


    public void execute() throws Exception {
        try {
            retryService.retry();
        } catch (Exception e) {
            log.error("", e);
            throw e;
        }
    }
}
